<?php /* Smarty version 2.6.14, created on 2010-02-25 14:43:34
         compiled from mainStat.html */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>查询结果</title>
		<style type="text/css">
<!--
body {
	background-image: url(../img/back.gif);
}
-->
</style>
		<style>
td{
	border-right:1px solid #cbdced;
	border-bottom: 1px solid #cbdced;
	padding:3px;
}

th{
	background-color:#cbdced;
	padding:3px;
	border-right:1px solid #fff;
	border-bottom:1px solid #fff;
}
table{
	clear:both;
	border-top: 1px solid #cbdced;
	border-left: 1px solid #cbdced;
}
body{
	font-size:14px;
}
.green{
	background-color: green;
	color:white;
}

.red{
	background-color:red;
	color: white;
}

.blue{
	background-color: blue;
	color:white;
}
.exportBtn{
	margin-right:30px;
	margin-top:2px;
	margin-bottom:2px;
	float:right;
	display:block;
	padding:1px;
}

span[class=exportBtn]:hover{
	background-color:#8A95A1;
	color:white;
}
		</style>
		<script type="text/javascript"  language="Javascript">
		function checkForDelete(mc){
			return window.confirm('确实要删除所有产品质量证书号为“' + mc + '”的记录吗？');
		}
		</script>
	</head>
	<body>
	<?php if ($this->_tpl_vars['noFile']): ?>
	当前文件条目为空
	<?php else: ?>
	<?php echo $this->_tpl_vars['filename']; ?>

	<span class="exportBtn">
			<a href="exportMainStatTable.php?filename=<?php echo $this->_tpl_vars['filename']; ?>
" title="点击进行导出结果">导出表格</a>
	</span>
		<table cellpadding="0" cellspacing="0">
		<tr>
			<th style="width:14em">材料代码</th>
			<th style="width:5em">批次</th>
			<th style="width:6em">生产厂家</th>
			<th style="width:6em">船级</th>
			<th style="width:6em">材质</th>
			<th style="width:10em">厚</th>
			<th style="width:5em">宽</th>
			<th style="width:6em">长</th>
			<th style="width:6em">订货清单数量</th>
			<th style="width:6em">材料代码数量</th>
			<th style="width:6em">订货清单总数量</th>
			<th style="width:6em">质量证书分配数量</th>
			<th style="width:6em">批号数量</th>
			<th style="width:6em">质量证书号数量</th>
			<th style="width:6em">质量证书号总数量</th>
			<th style="width:6em">单重</th>
			<th style="width:6em">订单号</th>
			<th style="width:6em">订单子项号</th>
			<th style="width:6em">受订单价</th>
			<th style="width:6em">购单号</th>
			<th style="width:10em">备注</th>
			<th style="width:14em">产品质量证明书号</th>
			<th style="width:14em">产品质量证明书编号</th>
			<th style="width:5em">批号</th>
			<th style="width:5em">物料号</th>
			<th style="width:5em">发货时间</th>
			<th style="width:5em">合同月份</th>
			<th style="width:5em">车号</th>
			<th style="width:5em">销售产家</th>
		</tr>
		<?php unset($this->_sections['item']);
$this->_sections['item']['name'] = 'item';
$this->_sections['item']['loop'] = is_array($_loop=$this->_tpl_vars['materialCode']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['item']['show'] = true;
$this->_sections['item']['max'] = $this->_sections['item']['loop'];
$this->_sections['item']['step'] = 1;
$this->_sections['item']['start'] = $this->_sections['item']['step'] > 0 ? 0 : $this->_sections['item']['loop']-1;
if ($this->_sections['item']['show']) {
    $this->_sections['item']['total'] = $this->_sections['item']['loop'];
    if ($this->_sections['item']['total'] == 0)
        $this->_sections['item']['show'] = false;
} else
    $this->_sections['item']['total'] = 0;
if ($this->_sections['item']['show']):

            for ($this->_sections['item']['index'] = $this->_sections['item']['start'], $this->_sections['item']['iteration'] = 1;
                 $this->_sections['item']['iteration'] <= $this->_sections['item']['total'];
                 $this->_sections['item']['index'] += $this->_sections['item']['step'], $this->_sections['item']['iteration']++):
$this->_sections['item']['rownum'] = $this->_sections['item']['iteration'];
$this->_sections['item']['index_prev'] = $this->_sections['item']['index'] - $this->_sections['item']['step'];
$this->_sections['item']['index_next'] = $this->_sections['item']['index'] + $this->_sections['item']['step'];
$this->_sections['item']['first']      = ($this->_sections['item']['iteration'] == 1);
$this->_sections['item']['last']       = ($this->_sections['item']['iteration'] == $this->_sections['item']['total']);
?>
		<tr <?php if ($this->_tpl_vars['main3SumCount'][$this->_sections['item']['index']] <= $this->_tpl_vars['mainSumCount'][$this->_sections['item']['index']]): ?> class="green" title="此项完成" <?php endif; ?>>
			<td><?php echo $this->_tpl_vars['materialCode'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['sequenceNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['manufactory'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['authenticationMark'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['steelNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['size1'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['size2'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['size3'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main3AllocatedCount'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main3Count'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['main3SumCount'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['mainAllocatedCount'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['mainCount'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['mainCertificationCount'][$this->_sections['item']['index']]; ?>
</td>
			<td <?php if ($this->_tpl_vars['main3SumCount'][$this->_sections['item']['index']] < $this->_tpl_vars['mainSumCount'][$this->_sections['item']['index']]): ?> class="red" title="完成数量大于总数量" <?php endif; ?>><?php echo $this->_tpl_vars['mainSumCount'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['unitWeight'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['orderNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['orderSubitemNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['unitPrice'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['purchaseNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['remark'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['certificationNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><a href="../img/<?php echo $this->_tpl_vars['certificationCodification'][$this->_sections['item']['index']]; ?>
.tif"><?php echo $this->_tpl_vars['certificationCodification'][$this->_sections['item']['index']]; ?>
</a></td>
			<td><?php echo $this->_tpl_vars['sampleBatch'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['materialNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['shipmentDate'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['month'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['vehicleNumber'][$this->_sections['item']['index']]; ?>
</td>
			<td><?php echo $this->_tpl_vars['consignee'][$this->_sections['item']['index']]; ?>
</td>
			</tr>
		<?php endfor; endif; ?>
		</table>
	<?php endif; ?>
	</body>
</html>